package tagdb.denovo;

import java.util.List;

/**
 * <b>DenovoEntry</b>
 * <p>
 * This class holds information from one spectrum -an entry- of the pepnovo output file.
 * </p>
 *
 * @author T.Muth
 */
public class DenovoEntry {

    /**
     * The title of the spectrum.
     */
    private String spectrumTitle;

    /**
     * The number of the spectrum (starting at 1)
     */
    private int spectrumNumber;

    /**
     * The list with all the hits of the spectrum.
     */
    private List<DenovoHit> hits;

    /**
     * Returns the spectrum title.
     *
     * @return spectrumName String
     */
    public String getSpectrumName() {
        return spectrumTitle;
    }

    /**
     * Sets the spectrum title.
     *
     * @param spectrumName
     */
    public void setSpectrumName(String spectrumName) {
        this.spectrumTitle = spectrumName;
    }

    /**
     * Returns the list of predictions.
     *
     * @return hits List<Prediction>
     */
    public List<DenovoHit> getHits() {
        return hits;
    }

    /**
     * Sets the list of predicted hits.
     *
     * @param hits The list of predicted hits.
     */
    public void setHits(List<DenovoHit> hits) {
        this.hits = hits;
    }

    /**
     * Returns the spectrum number.
     *
     * @return the spectrum number
     */
    public int getSpectrumNumber() {
        return spectrumNumber;
    }

    /**
     * Sets the spectrum number.
     *
     * @param spectrumNumber
     */
    public void setSpectrumNumber(int spectrumNumber) {
        this.spectrumNumber = spectrumNumber;
    }
}
